package com.itheima.mapper;

import com.itheima.pojo.EmpJobData;
import com.itheima.pojo.StudentCountData;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface ReportMapper {


//    List<EmpJobData> getEmpJobData();

    @MapKey("pos")
        //区分唯一的列是哪个，不加也可以的
    List<Map<String, Object>> empJobDataMap();

    @MapKey("name")
    List<Map<String, Object>> getEmpGenderData();

    /**
     * 班级人数统计
     *
     * @return
     */
    List<StudentCountData> getStudentCountData();



    /**
     * 学员学历统计
     *
     * @return
     */
    List<Map<String, Object>> getStudentDegreeData();



    /*@MapKey("pos")
    List<Map> getEmpJobData();*/
}
